package org.shop.service.impl;

import java.util.List;
import java.util.Map;

import org.shop.dao.AnswerInfoMapper;
import org.shop.entity.AnswerInfo;
import org.shop.service.AnswerInfoService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AnswerInfoServiceImpl extends BaseServiceImpl<AnswerInfo, Long> implements AnswerInfoService{

	@Autowired
	private AnswerInfoMapper answerInfoMapper;
	
	public List<Map<String, Object>> getPostHotAnswerList(Map<String, Object> params){
		return answerInfoMapper.getPostHotAnswerList(params);
	}
	
	public List<Map<String, Object>> getPostAnswerList(Map<String, Object> params){
		return answerInfoMapper.getPostAnswerList(params);
	}
	
	public int getAnswerCount(Map<String, Object> params){
		return answerInfoMapper.getAnswerCount(params);
	}

	@Override
	public List<Map<String, Object>> getReplyPostAnswerList(Map<String, Object> paramMap) {
		return answerInfoMapper.getReplyPostAnswerList(paramMap);
	}
}